﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interface;
using System.IO;
using System.Drawing;

namespace mogco
{
    class CacheManager : IPCacheManager
    {
        protected string rootTempPath;

        public CacheManager()
        {
            rootTempPath = Path.GetTempPath();
            // If No ROOT Directory Exists
        }

        public void AddElement(string Collection, Image image)
        {
            //string currentWorkPath = rootTempPath + "\\" + Collection;
            //try
            //{
            //    if (!Directory.Exists(currentWorkPath))
            //        Directory.CreateDirectory(currentWorkPath);
            //    System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
            //    System.Runtime.Serialization.Formatters.Binary.BinaryFormatter binaryFormatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
            //    binaryFormatter.Serialize(memoryStream, image);
            //    byte[] byteArray = memoryStream.ToArray();
            //    //System.IO.FileStream fileStream = new System.IO.FileStream();
            //}
        }
        public void AddRange()
        {
        }   
        public void LoadRange(string Collection)
        {
        }
    }
}
